<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + React</title>
  </head>
  <body>
    <div id="root"></div>
    <div id="fallback" style="display: none; padding: 20px; text-align: center; font-family: Arial, sans-serif;">
      <h1 style="color: #1890ff;">应用加载中...</h1>
      <p>如果长时间看到此消息，请检查浏览器控制台</p>
    </div>
    <script>
      // 如果React应用在3秒内没有渲染，显示fallback内容
      setTimeout(() => {
        const root = document.getElementById('root');
        const fallback = document.getElementById('fallback');
        if (!root.hasChildNodes() || root.innerHTML.trim() === '') {
          fallback.style.display = 'block';
        }
      }, 3000);
    </script>
    <script type="module" src="/src/main.jsx"></script>
  </body>
</html>
